<template>
    <div v-html="html"></div>
</template>
<script>
import { zfbxyPay } from '@/api/pay.js'
export default {
    data() {
        return {
            html: ''
        }
    },
    methods: {
        fetchVideoPay() {
            let param = {
                order_id: this.$route.query.orderId
            };
            zfbxyPay(param).then(res => {
                this.html = res.data; this.$nextTick(() => {
                    document.forms[0].submit()
                })
            })
        }
    },
    mounted() {
        this.fetchVideoPay()
    }
}
</script>